from django.db.utils import IntegrityError
from django.shortcuts import render
from django.utils.translation import ugettext_lazy as _

import helpers
import logics
from api import exceptions
from api.base_views import StaffView

class HelloView(StaffView):
    request_class = helpers.HelloRequest
    reply_class = helpers.HelloReply
    def staff_valid(self, staff, api_request):
        api_reply = self.reply_class()
        api_reply.set_hello('world')
        return api_reply



